package com.runjian.rundo.iot.agent.iec104.session.manager;

import org.springframework.stereotype.Component;

import com.runjian.rundo.iot.agent.common.network.tcp.client.TcpNetworkClient;
import com.runjian.rundo.iot.agent.common.network.tcp.client.session.TcpClientDeviceSessionManager;
import com.runjian.rundo.iot.agent.iec104.session.Iec104TcpClientDeviceSession;

import io.netty.channel.Channel;

/**
 * 设备连接会话管理 默认实现
 *
 * @author LiGang
 */
@Component
public class Iec104DeviceSessionManager extends TcpClientDeviceSessionManager<Iec104TcpClientDeviceSession> {

    @Override
    public Iec104TcpClientDeviceSession generateSession(TcpNetworkClient tcpNetworkClient, Channel channel) {
        Iec104TcpClientDeviceSession iec104TcpClientDeviceSession = new Iec104TcpClientDeviceSession(tcpNetworkClient, channel);
        return iec104TcpClientDeviceSession;
    }

}
